﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.ViewModel
{
    public class PermissionViewModel
    {
        public int pid { get; set; }

        [DisplayName("父权限")]
        public int pParent { get; set; }

        [DisplayName("权限名称")]
        [Required(ErrorMessage = "权限名称必须填写")]
        public string pName { get; set; }

        [DisplayName("区域名称")]
        [Required(ErrorMessage = "必须填写")]
        public string pAreaName { get; set; }

        [DisplayName("控制器名称")]
        [Required(ErrorMessage = "必须填写")]
        public string pControllerName { get; set; }

        [DisplayName("方法名称")]
        [Required(ErrorMessage = "必须填写")]
        public string pActionName { get; set; }

        [DisplayName("请求方式")]
        public short pFormMethod { get; set; }

        [DisplayName("请求类型")]
        public short pOperationType { get; set; }

        [DisplayName("是否在主列表显示")]
        public bool pIsShow { get; set; }

        [DisplayName("备注")]
        [DataType(DataType.MultilineText)]
        public string pRemark { get; set; }

    }
}
